$(function(){
    $('#slides_video').slides({
        preload: true,
        preloadImage: 'img/loading.gif',
        play: 5000,
        pause: 500,
        hoverPause: true,
        animationStart: function(current){
            $('.caption').animate({
                bottom:-35
            },100);
        },
        animationComplete: function(current){
            $('.caption').animate({
                bottom:0
            },200);
        },
        slidesLoaded: function() {
            $('.caption').animate({
                bottom:0
            },200);
        }
    });
    
    $('#slides_photo').slides({
		preload: true,
		preloadImage: 'img/loading.gif',
		play: 5000,
		pause: 500,
		hoverPause: true,
		animationStart: function(current){
			$('.caption').animate({
				bottom:-35
			},100);
		},
		animationComplete: function(current){
			$('.caption').animate({
				bottom:0
			},200);
		},
		slidesLoaded: function() {
			$('.caption').animate({
				bottom:0
			},200);
		}
	});
	$('#box_video_hot .tab1').attr('style', '').show();
    $('#box_video_hot .tab2').attr('style', '').hide();
});